<%@ Control Language="C#" AutoEventWireup="true" CodeFile="EditUsers.ascx.cs"  Inherits="Admin_Controls_EditUsers" %>
<div class="contentHeader">Edit Users</div>
<div class="contentInfo">
	View all of the users within the system. You can search with % as a wildcard character. I.E. c% will return all of the users that start with a c.<br /><br />
	<asp:Panel ID="pnlUserSearch" runat="server" DefaultButton="btnSearch">
		<asp:TextBox ID="txtUsername" runat="server"></asp:TextBox>
		<asp:Button ID="btnSearch" runat="server" Text="Search" OnClick="btnSearch_Click" /><br /><br />
	</asp:Panel>
	<asp:GridView ID="grdUsers" runat="server" AutoGenerateColumns="False" DataSourceID="ObjectDataSource1" CellPadding="2" Width="100%">
		<Columns>
			<asp:CheckBoxField DataField="IsOnline" HeaderText="IsOnline" ReadOnly="True" SortExpression="IsOnline" />
			<asp:BoundField DataField="UserName" HeaderText="UserName" ReadOnly="True" SortExpression="UserName" />
			<asp:BoundField DataField="Email" HeaderText="Email" SortExpression="Email" />
			<asp:BoundField DataField="CreationDate" HeaderText="CreationDate" ReadOnly="True"
				SortExpression="CreationDate" />
			<asp:BoundField DataField="LastLoginDate" HeaderText="LastLoginDate" SortExpression="LastLoginDate" />
			<asp:BoundField DataField="LastActivityDate" HeaderText="LastActivityDate" SortExpression="LastActivityDate" />
		</Columns>
	</asp:GridView>
	<asp:ObjectDataSource ID="ObjectDataSource1" runat="server" SelectMethod="FindUsersByUsername"
		TypeName="ProjectsHelper">
		<SelectParameters>
			<asp:ControlParameter ControlID="txtUsername" Name="usernameToMatch" PropertyName="Text"
				Type="String" />
		</SelectParameters>
	</asp:ObjectDataSource>
</div>